package com.signway.javaui;

import com.signway.javaui.define.CommonData;
import com.signway.javaui.slice.layout.AdaptiveBoxLayoutSlice;
import com.signway.javaui.slice.LayoutAbilitySlice;
import com.signway.javaui.slice.layout.PositionLayoutSlice;
import com.signway.javaui.slice.layout.DependentLayoutSlice;
import com.signway.javaui.slice.layout.DirectionalLayoutSlice;
import com.signway.javaui.slice.layout.StackLayoutSlice;
import com.signway.javaui.slice.layout.TableLayoutSlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

public class LayoutAbility extends Ability {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(LayoutAbilitySlice.class.getName());

        addActionRoute(CommonData.DIRECTIONAL_LAYOUT, DirectionalLayoutSlice.class.getName());
        addActionRoute(CommonData.DEPENDENT_LAYOUT, DependentLayoutSlice.class.getName());
        addActionRoute(CommonData.POSITION_LAYOUT, PositionLayoutSlice.class.getName());
        addActionRoute(CommonData.TABLE_LAYOUT, TableLayoutSlice.class.getName());
        addActionRoute(CommonData.ADAPTIVE_BOX_LAYOUT, AdaptiveBoxLayoutSlice.class.getName());
        addActionRoute(CommonData.STACK_LAYOUT, StackLayoutSlice.class.getName());
    }
}
